<template>
	<view class="">
		<text class="iconfont icon-star-copy color1" v-for="(item,index) in yellownum" :key="index"></text>
		<text class="iconfont icon-star-copy" v-for="(item,index) in huinum" :key="index"></text>
		 <text style="font-size: 16px;color: #e74c3c;font-weight: 600; margin-left: 15upx;" >{{score/1.0}}分</text>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				yellownum:0,
				huinum:0,
			}
		},
		props:{
			score:0,
		},
		created(){
			// console.log(this.score)
				 this.yellownum=Math.floor(this.score/2)
				 this.huinum=10/2-this.yellownum
				 }
			
			
			
		
	}
</script>

<style scoped>
	.color1{
		color: yellow;
	}
	.icon-star-copy{
		font-size: 26upx;
	}
</style>
